/*
 * @Author: 肖思汗 
 * @Date: 2025-07-02 09:28:09 
 * @Last Modified by: 肖思汗
 * @Last Modified time: 2025-07-02 10:00:42
 */

import Taro from "@tarojs/taro";
import goodsApi from "src/api/goodsApi";

//跳转到商品详情页面
export default function goGoodsDetail(productId: number) {
    goodsApi.countHotProduct(productId);
    const url = `/subPages/GoodsDetail/GoodsDetail?productId=${productId}`;
    console.log(url);
    Taro.navigateTo({ url });
}